package cn.com.gof.behavior.ChainOfRos;

/**
 * <p>Title: Client</p>  
 * <p>Description: </p>  
 * @author WangJun
 * @date 2018年9月10日 上午9:01:23
 */
public class Client {
	public static void main(String[] args) {
		Leader a = new Direct("张三");
		Leader b = new Manager("李四");
		Leader c = new GenerManger("王五");
		a.setNextLeader(b);
		b.setNextLeader(c);
		LeaveRequest request = new LeaveRequest();
		request.setDays(11);
		request.setEmpName("赵六");
		request.setReason("hhhhh");
		
		a.handRequest(request);
	}
}
